<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>用户详情</title>
    <!--/* 加载全局样式 */-->
    <th:block th:replace="common/thinDecorator::globalStyle"></th:block>
    <!--/* 加载全局主题样式 */-->
    <th:block th:replace="common/thinDecorator::globalThemeStyle"></th:block>
    <!--/* 加载全局布局样式 */-->
    <th:block th:replace="common/thinDecorator::globalLayoutStyle"></th:block>
</head>
<body class="page-content-white page-container-bg-solid page-content-form material-blue" style="overflow-x: hidden;">
<div class="page-wrapper">
    <div class="page-container">
        <div class="page-content-wrapper">
            <div class="page-content">
                <div class="row">
                    <div class="col-md-12">
                        <div class="portlet light">
                            <div class="portlet-title">
                                <div class="caption font-blue">
                                    <i class="fa font-blue"></i>执行详情
                                </div>
                            </div>
                            <div class="portlet-body">
                                <div class="row">
                                    <div class="col-md-3">数据质量标准名称：</div>
                                    <div class="col-md-3" th:text="${project.getCnName()}">.col-md-3</div>
                                    <div class="col-md-3">数据质量标准目录：</div>
                                    <div class="col-md-3" th:text="${project.getSjzlbzml()}">.col-md-3</div>
                                </div>
                                <div class="row">
                                    <div class="col-md-3">执行开始时间：</div>
                                    <div class="col-md-3" th:text="${beginTime}">.col-md-3</div>
                                    <div class="col-md-3">执行结束时间：</div>
                                    <div class="col-md-3" th:text="${endTime}">.col-md-3</div>
                                </div>
                                <div class="row">
                                    <div class="col-md-3">参考文献：</div>
                                    <div class="col-md-3" th:text="${project.getCkwx()}">.col-md-3</div>
                                    <div class="col-md-3">数据质量标准类型：</div>
                                    <div class="col-md-3" th:text="${project.getSjzllx()}">.col-md-3</div>
                                </div>
                                <div class="row">
                                    <div class="col-md-3">执行规则总数：</div>
                                    <div class="col-md-3" th:text="${ruleTotal}">.col-md-3</div>
                                    <div class="col-md-3">执行通过：</div>
                                    <div class="col-md-3" th:text="${ruleSuccess}">.col-md-3</div>
                                </div>
                                <div class="row">
                                    <div class="col-md-3">执行未通过：</div>
                                    <div class="col-md-3" th:text="${ruleFail}">.col-md-3</div>
                                    <div class="col-md-3"></div>
                                    <div class="col-md-3"></div>
                                </div>
                                <div class="row" th:each="details:${ruleDetailDTOS}">
                                    <label th:text="${details.getRuleType()}"></label>
                                    <div class="col-md-12">
                                        <div class="row">
                                            <div class="col-md-2">执行引擎：</div>
                                            <div class="col-md-2" th:text="${details.getDataSourceEngine()}">.col-md-3</div>
                                            <div class="col-md-2">数据库名：</div>
                                            <div class="col-md-2" th:text="${details.getDatabaseName()}"></div>
                                            <div class="col-md-2">数据表名：</div>
                                            <div class="col-md-2" th:text="${details.getTableName()}"></div>
                                        </div>
                                        <table class="table table-hover">
                                            <tr>
                                                <th class="info">规则名称</th>
                                                <th class="info">校验字段</th>
                                                <th class="info">校验规则</th>
                                                <th class="info">实际结果</th>
                                                <th class="info">规则描述</th>
                                            </tr>
                                            <tr>
                                                <td  th:text="${details.getRuleName()}">规则名称</td>
                                                <td  th:text="${details.getFieldName()}">规则名称</td>
                                                <td  th:text="${details.getRuleTemplate()}">规则名称</td>
                                                <td  th:text="${details.getCheckStatus()}">规则名称</td>
                                                <td  th:text="${details.getDesc()}">规则名称</td>
                                            </tr>
                                        </table>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-6"></div>
                                    <div class="col-md-2"><a href="javascript:closeLayer();" class="btn default">关闭</a></div>
                                    <div class="col-md-4"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>
<div id="scripts">
    <!--/* 加载IE8兼容性脚本 */-->
    <th:block th:replace="common/thinDecorator::IE8FixScripts"/>
    <!--/* 加载核心插件脚本 */-->
    <th:block th:replace="common/thinDecorator::corePluginsScripts"/>
    <!--/* 加载全局主题脚本 */-->
    <th:block th:replace="common/thinDecorator::globalThemeScripts"/>
    <!--/* 加载全局布局脚本 */-->
    <th:block th:replace="common/thinDecorator::globalLayoutScripts"/>
    <th:block th:replace="common/thinDecorator::globalsetupScripts"/>
    <script>
        function closeLayer() {
            parent.location.reload();
            // 关闭自己
            parent.layer.close(parent.layer.getFrameIndex(window.name));
        }
    </script>
</div>
<!-- END -->
</body>
</html>